document.writeln("<html>");
document.writeln("	<head>");
document.writeln("		<meta charset=\'utf-8\'>");
document.writeln("		<title></title>");
document.writeln("		<link rel=\'stylesheet\' type=\'text/css\' href=\'./css/basestyle.css\' />");
document.writeln("		<link rel=\'stylesheet\' type=\'text/css\' href=\'./css/headfoot.css\'/>");
document.writeln("		<script src=\'js/base.js\'></script>");
document.writeln("	</head>");
document.writeln("	<body>");
document.writeln("		<div id=\'pc-header\' class=\'hidden-xs\'>");
document.writeln("			<div id=\'head\'>");
document.writeln("				<div ref=\'tippopup\' style=\'display:block\'>");
document.writeln("					<div class=\'head_nav\'>");
document.writeln("						<div class=\'headmid\'>");
document.writeln("							<!-- 中间的导航 -->");
document.writeln("							<div class=\'headnav\' v-show=\'nav==1\'>");
document.writeln("								<ul>");
document.writeln("									<a href=\'index.html?num=0\' >");
document.writeln("										<li class=\'headtitle\' @click=\'changestatusbtn(num)\':class=\'{head_active :changestatus==0}\'>");
document.writeln("											<p>首页</p>");
document.writeln("										</li>");
document.writeln("									</a>");
document.writeln("									<a href=\'jingsaicenter.html?num=1\' >");
document.writeln("										<li class=\'headtitle\' @click=\'changestatusbtn(num)\':class=\'{head_active :changestatus==1}\'>");
document.writeln("											<p>竞赛中心</p>");
document.writeln("										</li>");
document.writeln("									</a>");
document.writeln("									<a href=\'fabu.html?num=2\'>");
document.writeln("										<li class=\'headtitle\' @click=\'changestatusbtn(num)\':class=\'{head_active :changestatus==2}\'>");
document.writeln("											<p>我要发布</p>");
document.writeln("										</li>");
document.writeln("									</a>");
document.writeln("									<a href=\'workstrack.html?num=3\'>");
document.writeln("										<li class=\'headtitle\' @click=\'changestatusbtn(num)\':class=\'{head_active :changestatus==3}\'>");
document.writeln("											<p>作品追踪</p>");
document.writeln("										</li>");
document.writeln("									</a>");
document.writeln("");
document.writeln("									<div class=\'headri\'>");
document.writeln("										<div class=\'headrinav\'>");
document.writeln("											<div class=\'headri_search headri_item\' @click=\'opensearch\' v-show=\'nav==1\'>");
document.writeln("												<img class=\'headri_search_img\' src=\'images/search_icon.png\'>");
document.writeln("											</div>");
document.writeln("											<div class=\'headri_lang headri_item\' @click=\'changelanguage\'>");
document.writeln("												<p>EN/中文</p>");
document.writeln("											</div>");
document.writeln("											<a href=\'personalcenter.html\'>");
document.writeln("												<div class=\'headri_user headri_item\' v-show=\'loginstatus == 1\'>");
document.writeln("													<div class=\'headri_userle headri_useritem\'>");
document.writeln("															<img class=\'headri_user_img\' :src=\'icon\'>");
document.writeln("													</div>");
document.writeln("													<div class=\'headri_userri headri_useritem\'>");
document.writeln("														<p class=\'headri_user_txt\'>{{username}}</p>");
document.writeln("													</div>");
document.writeln("												<div class=\'headri_userri headri_useritem headri_out\' @click.stop=\'loginout\'>");
document.writeln("													<p class=\'headri_user_txt\'>登出</p>");
document.writeln("												</div>");
document.writeln("													<div class=\'clear\'></div>");
document.writeln("												</div>");
document.writeln("											</a>");
document.writeln("											<div class=\'headri_user headri_item\' v-show=\'loginstatus == 0\'>	");
document.writeln("												<div class=\'headri_userle headri_useritem\'>");
document.writeln("													<img class=\'headri_user_img\' src=\'./images/per_icon.png\'>");
document.writeln("												</div>");
document.writeln("												<div class=\'headri_userri headri_useritem\' @click=\'loginuser\'>");
document.writeln("													<p class=\'headri_user_txt\'>登录/注册</p>");
document.writeln("												</div>");
document.writeln("												<div class=\'clear\'></div>");
document.writeln("											</div>");
document.writeln("										</div>");
document.writeln("									</div>");
document.writeln("									<div class=\'clear\'></div >");
document.writeln("								</ul>");
document.writeln("							</div>");
document.writeln("							<!-- 中间的导航英文 -->");
document.writeln("							");
document.writeln("							<!-- 搜索 -->");
document.writeln("							<div class=\'search\' v-show=\'nav==2\'>");
document.writeln("								<div class=\'searchtype\'>");
document.writeln("									<div class=\'searchtypereference\'>");
document.writeln("										<p @click=\'openlist\'>{{typesearch0}}</p>");
document.writeln("										<div class=\'searchtypenav\' v-show=\'typePage == 1\'>");
document.writeln("											<div class=\'searchtypewarp\'>");
document.writeln("												<p v-for=\'(item,index) in typesearch\' @click=\'changsearch(index)\'>{{item.name}}</p>");
document.writeln("											</div>");
document.writeln("										</div>");
document.writeln("									</div>");
document.writeln("								</div>");
document.writeln("								");
document.writeln("								<div class=\'searchclose\' @click=\'closesearch\'>");
document.writeln("									<img src=\'./images/head_close.png\'>");
document.writeln("								</div>");
document.writeln("								<div class=\'searchwarp\'>");
document.writeln("									<input v-model=\'searchcontent\' class=\'searchnav\' type=\'text\' @focus=\'focusing\' />");
document.writeln("								</div>");
document.writeln("								<div class=\'searchstart\' @click=\'headseach\'>");
document.writeln("									<img src=\'images/search_icon.png\'>");
document.writeln("								</div>");
document.writeln("								");
document.writeln("								<div class=\'headbg\' v-show=\'seachopen && this.usersearch.length >0\'>");
document.writeln("									<div class=\'headnavbg\' @click=\'defocusing\'></div>");
document.writeln("									<div class=\'searchrecord\'>");
document.writeln("										<div class=\'searchrecordnav\' v-for=\'(item ,index) in usersearch\' :key=\'index\' @click=\'movevalue(index)\'>");
document.writeln("											<p>{{item.content}}</p>");
document.writeln("										</div>");
document.writeln("									</div>");
document.writeln("								</div>");
document.writeln("								<!-- 提示弹窗 -->");
document.writeln("								<div class=\'judgepopup\'v-if=\'tanchuang1 != 0\'>");
document.writeln("									<div class=\'judgepopupnav\'>");
document.writeln("										<div class=\'judgepopupwarp\'>");
document.writeln("											<div class=\'judgepopupwarpup\'>");
document.writeln("												<img src=\'./images/revoke_logo.png\'>");
document.writeln("											</div>");
document.writeln("											<div class=\'judgepopupwarpdown\'>");
document.writeln("												<div class=\'judgepopupwarptxt\'>");
document.writeln("													<p v-if=\'tipcontent == 1\'>请选择搜索类型</p>");
document.writeln("													<p v-else-if=\'tipcontent == 2\'>请输入搜索内容</p>");
document.writeln("												</div>");
document.writeln("												<div class=\'judgepopupwarpbtn\'>");
document.writeln("													<div class=\'judgepopupwarpbtnitem judgepopupwarpbtnactive\' @click=\'closeagreement\'>");
document.writeln("														<p>确认</p>");
document.writeln("													</div>");
document.writeln("												</div>");
document.writeln("											</div>");
document.writeln("										</div>");
document.writeln("									</div>");
document.writeln("								</div>");
document.writeln("							</div>");
document.writeln("						</div>");
document.writeln("						<!--  -->");
document.writeln("						<div class=\'judgepopup\'v-show=\'tanchuang2==1\'>");
document.writeln("							<div class=\'judgepopupnav\'>");
document.writeln("								<div class=\'judgepopupwarp\'>");
document.writeln("									<div class=\'judgepopupwarpup\'>");
document.writeln("										<img src=\'./images/revoke_logo.png\'>");
document.writeln("									</div>");
document.writeln("									<div class=\'judgepopupwarpdown\'>");
document.writeln("										<div class=\'judgepopupwarptxt\'>");
document.writeln("											<p>用户失效，请重新输入</p>");
document.writeln("										</div>");
document.writeln("										<div class=\'judgepopupwarpbtn\'>");
document.writeln("											<div class=\'judgepopupwarpbtnitem judgepopupwarpbtnactive\' @click=\'openlogin\'>");
document.writeln("												<p>确认</p>");
document.writeln("											</div>");
document.writeln("										</div>");
document.writeln("									</div>");
document.writeln("								</div>");
document.writeln("							</div>");
document.writeln("						</div>");
document.writeln("						<!-- 登录注册 -->");
document.writeln("						<div id=\'sign\' v-if=\'num==1\'>");
document.writeln("							<div class=\'signnav\'>");
document.writeln("								<!-- 登录 -->");
document.writeln("								<div class=\'signcontent\' v-if=\'page ==1\'>");
document.writeln("									<div class=\'signcontentup\'>");
document.writeln("										<img src=\'./images/pay_icon.png\'>");
document.writeln("										<div class=\'signcontentupclose\' @click=\'closelogin\'>");
document.writeln("											<img src=\'./images/close_icon.png\'>");
document.writeln("										</div>");
document.writeln("									</div>");
document.writeln("									<div class=\'signcontentdown\'>");
document.writeln("										<div class=\'signcontentdownchoose\'>");
document.writeln("											<div class=\'signcontentdownchoosetitle\' >");
document.writeln("												<div class=\'signcontentdownchoitemosetitleitem\'>");
document.writeln("													<p>密码登录</p>");
document.writeln("												</div>");
document.writeln("											</div>");
document.writeln("											<div class=\'signcontentdownchooseipt\' v-if=\'type == 1\'>");
document.writeln("												<div class=\'signcontentdownchooseiptitem\'>");
document.writeln("													<input  v-model=\'loginphone\' type=\'text\' placeholder=\'请输入手机号\' />");
document.writeln("												</div>");
document.writeln("												<div class=\'signcontentdownchooseiptitem\'>");
document.writeln("													<input  v-model=\'loginpassword\' type=\'password\' placeholder=\'请输入密码\' />");
document.writeln("												</div>");
document.writeln("											</div>");
document.writeln("										</div>");
document.writeln("										<div v-if=\'loginstatuscode == 1\' class=\'\'>");
document.writeln("											<p>账号或密码错误</p>");
document.writeln("										</div>");
document.writeln("										<div class=\'signcontentdownbtn\' @click=\'headlogin\'>");
document.writeln("											<p>登录</p>");
document.writeln("										</div>");
document.writeln("										<div class=\'loginthing\'>");
document.writeln("											<div class=\'signcontentdownzhuce\' @click=\'openzhuce\'>");
document.writeln("												<span>免费注册</span>");
document.writeln("											</div>");
document.writeln("										</div>");
document.writeln("									</div>");
document.writeln("								</div>");
document.writeln("								<!-- 注册 -->");
document.writeln("								<div class=\'register\' v-else-if=\'page ==2\'>");
document.writeln("									<div class=\'signcontentup\'>");
document.writeln("										<img src=\'./images/pay_icon.png\'>");
document.writeln("										<div class=\'signcontentupclose\' @click=\'closezhuce\'>");
document.writeln("											<img src=\'./images/close_icon.png\'>");
document.writeln("										</div>");
document.writeln("									</div>");
document.writeln("									<div class=\'registerdown\'>");
document.writeln("										<div class=\'registerdowntxt\'>");
document.writeln("											<p >注册账号</p>");
document.writeln("										</div>");
document.writeln("										<div class=\'registerdownipt\'>");
document.writeln("											<div class=\'registerdowniptnav\'>");
document.writeln("												<input  v-model=\'zucephone\' type=\'text\' placeholder=\'请输入手机号\' />");
document.writeln("											</div>");
document.writeln("											<div class=\'\'>");
document.writeln("												<p v-if=\'phonecode == 1\'>手机号格式不正确</p>");
document.writeln("											</div>");
document.writeln("											<div class=\'registerdowniptnav\'>");
document.writeln("												<input v-model=\'zhucepassword\' type=\'password\' placeholder=\'密码长度8-16位,数字,字母或下划线组成 \'/>");
document.writeln("											</div>");
document.writeln("											<div class=\'registerdowniptnav\'>");
document.writeln("												<input v-model=\'zhucemakesurepassword\' type=\'password\' placeholder=\'请再次输入密码\' />");
document.writeln("											</div>");
document.writeln("											<div v-show=\'judgepassword == 2\' class=\'registerdowniptnavtip\'>");
document.writeln("												<p v-html=\'zhucetip\'></p>");
document.writeln("											</div>");
document.writeln("											<div class=\'registerdowniptnavtip\' v-show=\'judgepassword == 1\'>");
document.writeln("												<p >两次密码输入不正确</p>");
document.writeln("											</div>");
document.writeln("										</div>");
document.writeln("										<div class=\'registerdownbtn\' @click=\'headzhuce\'>");
document.writeln("											<p>注册</p>");
document.writeln("										</div>");
document.writeln("									</div>");
document.writeln("								</div>");
document.writeln("							</div>");
document.writeln("						</div>");
document.writeln("					</div>");
document.writeln("				</div>");
document.writeln("			</div>");
document.writeln("		</div>");
document.writeln("		<script src=\'https://cdn.bootcdn.net/ajax/libs/axios/0.21.0/axios.min.js\'></script>");
document.writeln("		<script src=\'https://cdn.jsdelivr.net/npm/vue/dist/vue.js\'></script>");
document.writeln("		 <script src=\'https://cdn.polyfill.io/v2/polyfill.min.js\'></script>");
document.writeln("		<script type=\'text/javascript\'>");
document.writeln("			let head = new Vue({");
document.writeln("				el: \'#head\',");
document.writeln("				data: {");
document.writeln("					typesearch0:\'请选择类型\',");
document.writeln("					typesearch:[");
document.writeln("						{");
document.writeln("							name:\'竞赛\',");
document.writeln("							id:1");
document.writeln("						},");
document.writeln("						{");
document.writeln("							name:\'追踪\',");
document.writeln("							id:2");
document.writeln("						},");
document.writeln("					],");
document.writeln("				// 	tip:false,");
document.writeln("				// 	tipmes:\'\',");
document.writeln("					judgepassword:0,  //注册提示判断");
document.writeln("					zhucetip:\'\',  //注册错误提示");
document.writeln("					tipcontent:0,");
document.writeln("					typePage:0,");
document.writeln("					username: \'\',");
document.writeln("					icon: \'\',");
document.writeln("				// 	headPortrait: \'./images/touxiang.png\',");
document.writeln("				// 	getCode: true,");
document.writeln("				// 	logingetCode: true,");
document.writeln("				// 	count: \'\',");
document.writeln("				// 	logincount: \'\',");
document.writeln("					num: 0,  //登录判断");
document.writeln("					judgepage:1,");
document.writeln("					nav:1,");
document.writeln("					type: 1,");
document.writeln("					page: 1,");
document.writeln("					seachopen: false,");
document.writeln("				// 	password: 0,");
document.writeln("					phonecode: 0,  //手机号格式");
document.writeln("				// 	phonecodelogin: 0,");
document.writeln("				// 	logintype: 0,");
document.writeln("					loginstatuscode: 0,");
document.writeln("					loginstatus: 0,");
document.writeln("				// 	searrchlist: [],");
document.writeln("					loginphone: \'\',  //手机号");
document.writeln("					loginpassword: \'\',  //密码");
document.writeln("				// 	loginphonecode: \'\',");
document.writeln("				// 	logincode: \'\',");
document.writeln("					zucephone: \'\',  //注册手机号");
document.writeln("				// 	zhucecode: \'\',");
document.writeln("					zhucepassword: \'\',  //注册密码");
document.writeln("					zhucemakesurepassword: \'\',  //注册确定密码");
document.writeln("					searchcontent:\'\',  //搜索内容");
document.writeln("				// 	userid:\'\',");
document.writeln("				// 	token:\'\',");
document.writeln("					usersearch:[],");
document.writeln("				// 	recordcontent:\'\',");
document.writeln("					typeid:0,");
document.writeln("					tanchuang1:0,");
document.writeln("					tanchuang2:0,  //登录失效，重新登陆弹窗");
document.writeln("				// 	tanchuang3:0,");
document.writeln("					changestatus:0,");
document.writeln("				// 	changelanguagestatus:true,");
document.writeln("				// 	languagestatus:1,");
document.writeln("				// 	winWidth:\'\',");
document.writeln("				// 	sidewidth:\'\',");
document.writeln("				// 	midwidth:\'\',");
document.writeln("				// 	xieyithing:\'\',");
document.writeln("				// 	xieyithingE:\'\',");
document.writeln("				// 	forgetuserid:\'\',");
document.writeln("				},");
document.writeln("				created() {");
document.writeln("					let that = this");
document.writeln("					if(!sessionStorage.getItem(\'languagestatus\')) {");
document.writeln("						//缓存语言");
document.writeln("						sessionStorage.setItem(\'languagestatus\', 1);");
document.writeln("					}");
document.writeln("					if(!sessionStorage.getItem(\'typeid\')) {");
document.writeln("						//竞赛类型");
document.writeln("						sessionStorage.setItem(\'typeid\', 0);");
document.writeln("					}");
document.writeln("					if(!sessionStorage.getItem(\'content\')) {");
document.writeln("						//搜索内容");
document.writeln("						sessionStorage.setItem(\'content\', \'\');");
document.writeln("					}");
document.writeln("					if(sessionStorage.getItem(\'loginpage\')) {");
document.writeln("						//登录页面");
document.writeln("						that.num = sessionStorage.getItem(\'loginpage\');");
document.writeln("					}");
document.writeln("					if (localStorage.getItem(\'logininfo\')) {");
document.writeln("						let obj = JSON.parse(localStorage.getItem(\'logininfo\'));");
document.writeln("						if(obj.token != \'\'){");
document.writeln("							that.loginstatus = 1");
document.writeln("						}");
document.writeln("						if(obj.token == \'\'){");
document.writeln("							that.loginstatus = 0");
document.writeln("						}");
document.writeln("						that.userid = obj.userid");
document.writeln("						that.token = obj.token");
document.writeln("					}");
document.writeln("				},");
document.writeln("				mounted() {");
document.writeln("					let that = this");
document.writeln("				// 	that.getwidth()");
document.writeln("					that.getlogining() //登陆状态判断");
document.writeln("					if(sessionStorage.getItem(\'typeid\')) {");
document.writeln("						//竞赛类型");
document.writeln("						that.typeid = sessionStorage.getItem(\'typeid\')");
document.writeln("						if(that.typeid==1){");
document.writeln("							that.typesearch0=\'竞赛\'");
document.writeln("						}else if(that.typeid==2){");
document.writeln("							that.typesearch0=\'追踪\'");
document.writeln("						}else if(that.typeid==0){");
document.writeln("							that.typesearch0=\'请选择类型\'");
document.writeln("						}");
document.writeln("					}");
document.writeln("					if (sessionStorage.getItem(\'languagestatus\')) {");
document.writeln("						that.languagestatus = sessionStorage.getItem(\'languagestatus\')");
document.writeln("					}");
document.writeln("					if(sessionStorage.getItem(\'content\')) {");
document.writeln("						//搜索内容");
document.writeln("						that.searchcontent= sessionStorage.getItem(\'content\');");
document.writeln("					}");
document.writeln("					if (localStorage.getItem(\'userinfo\')) {");
document.writeln("						let obj = JSON.parse(localStorage.getItem(\'userinfo\'));");
document.writeln("						that.username = obj.nickname");
document.writeln("						that.icon = obj.avatar");
document.writeln("					}");
document.writeln("					if(location.pathname.indexOf(\'search\') != -1) {");
document.writeln("						that.nav = 2");
document.writeln("					}else {");
document.writeln("						that.nav = 1");
document.writeln("					}");
document.writeln("					var theRequest = new Object()");
document.writeln("					var url = location.search");
document.writeln("					if (url.indexOf(\'?\') != -1) {");
document.writeln("						var str = url.substr(1); //substr()方法返回从参数值开始到结束的字符串；  ");
document.writeln("						var strs = str.split(\'&\');");
document.writeln("						for (var i = 0; i < strs.length; i++) {");
document.writeln("							theRequest[strs[i].split(\'=\')[0]] = (strs[i].split(\'=\')[1]);");
document.writeln("						}");
document.writeln("						that.changestatus = theRequest.num  //导航判断");
document.writeln("					}");
document.writeln("					this.$refs.tippopup.style.display = \'block\'");
document.writeln("				},");
document.writeln("				destroyed() {");
document.writeln("					");
document.writeln("				},");
document.writeln("				methods: {");
document.writeln(" 					//判断登陆状态");
document.writeln("					getlogining:function(){");
document.writeln("						let that = this");
document.writeln("						if(that.token !=\'\' ){");
document.writeln("							axios.post(\'http://127.0.0.1:8080/api/bishe.basics/islogin\',{");
document.writeln("								userid:that.userid,");
document.writeln("								token:that.token");
document.writeln("							})");
document.writeln("							.then((res) =>{");
document.writeln("								if(res.data.code == 2){");
document.writeln("								console.log(res,\'我是检查登陆状态\')");
document.writeln("									if (localStorage.getItem(\'logininfo\')) {");
document.writeln("										let obj = JSON.parse(localStorage.getItem(\'logininfo\'))");
document.writeln("										that.userid = obj.userid = \'\'");
document.writeln("										that.token = obj.token = \'\'");
document.writeln("										obj = JSON.stringify(obj)");
document.writeln("										localStorage.setItem(\'logininfo\', obj)");
document.writeln("										that.loginstatus = 0");
document.writeln("										that.tanchuang2 = 1");
document.writeln("									}");
document.writeln("								}");
document.writeln("							})");
document.writeln("						}");
document.writeln("					},");
document.writeln("					//登出");
document.writeln("					loginout:function(){");
document.writeln("						let that = this");
document.writeln("						axios.get(\'http://127.0.0.1:8080/api/bishe.login/exited\',{");
document.writeln("							params:{");
document.writeln("								userid:that.userid,");
document.writeln("							}");
document.writeln("						})");
document.writeln("						.then((res) =>{");
document.writeln("							if(res.data.code == 1){");
document.writeln("							}");
document.writeln("						})");
document.writeln("					},");
document.writeln("// 					// 重新登陆");
document.writeln("					openlogin:function(){");
document.writeln("						this.num = 1");
document.writeln("						this.tanchuang2 = 0");
document.writeln("					},");
document.writeln("// 					// 打开搜索框");
document.writeln("					opensearch: function() {");
document.writeln("						this.nav = 2");
document.writeln("						this.getsearrchlist()");
document.writeln("					},");
document.writeln(" 					// 关闭搜索框");
document.writeln("					closesearch: function() {");
document.writeln("						this.nav = 1");
document.writeln("						this.typesearch0 = \'请选择类型\',");
document.writeln("						this.searchcontent = \'\'");
document.writeln("						sessionStorage.setItem(\'typeid\',0);");
document.writeln("					},");
document.writeln(" 					// input聚焦事件");
document.writeln("					focusing: function() {");
document.writeln("						this.seachopen = true");
document.writeln("					},");
document.writeln("					// input失焦事件");
document.writeln("					defocusing: function() {");
document.writeln("						this.seachopen = false");
document.writeln("					},");
document.writeln(" 					// 打开列表");
document.writeln("					openlist:function(){");
document.writeln("						let that = this");
document.writeln("						that.typePage = 1");
document.writeln("					},");
document.writeln(" 					// 选择类型");
document.writeln("					changsearch:function(i){");
document.writeln("						let that = this");
document.writeln("						that.typesearch0 = that.typesearch[i].name");
document.writeln("						that.typeid = that.typesearch[i].id");
document.writeln("						that.typePage = 0");
document.writeln("						sessionStorage.setItem(\'typeid\',that.typeid);");
document.writeln("					},");
document.writeln(" 					// 填入输入框 跳转页面");
document.writeln("					movevalue:function(i){");
document.writeln("						let that = this");
document.writeln("						if(that.typeid == 0){");
document.writeln("							that.tipcontent = 1");
document.writeln("							that.tanchuang1 = 1");
document.writeln("							that.seachopen = false");
document.writeln("						}else{");
document.writeln("							that.searchcontent = that.usersearch [i].content");
document.writeln("							if(that.typeid == 1){");
document.writeln("								axios.get(\'http://127.0.0.1:8080/api/bishe.index/competitionSearch\',{");
document.writeln("									params:{");
document.writeln("										userid:that.userid,");
document.writeln("										token:that.token,");
document.writeln("										text:that.searchcontent,");
document.writeln("										page:\'\'");
document.writeln("									}");
document.writeln("								})");
document.writeln("								.then((res) =>{");
document.writeln("									if(res.data.code == 1){");
document.writeln("										window.location.href = \'search.html\'");
document.writeln("										sessionStorage.setItem(\'content\', that.searchcontent);");
document.writeln("									}");
document.writeln("								})");
document.writeln("							}else if(that.typeid == 2){");
document.writeln("								axios.get(\'http://127.0.0.1:8080/api/bishe.index/trackSearch\',{");
document.writeln("									params:{");
document.writeln("										userid:that.userid,");
document.writeln("										token:that.token,");
document.writeln("										text:that.searchcontent,");
document.writeln("										page:\'\'");
document.writeln("									}");
document.writeln("								})");
document.writeln("								.then((res) =>{");
document.writeln("									if(res.data.code == 1){");
document.writeln("										window.location.href = \'search.html\'");
document.writeln("										sessionStorage.setItem(\'content\', that.searchcontent);");
document.writeln("									}");
document.writeln("								})");
document.writeln("							}");
document.writeln("						}");
document.writeln("					},");
document.writeln(" 					// 搜索");
document.writeln("					headseach: function() {");
document.writeln("						let that = this");
document.writeln("						console.log(this.judgepage)");
document.writeln("						if(that.typeid != 0 && that.searchcontent != \'\'){");
document.writeln("							if(that.typeid == 1){");
document.writeln("								axios.get(\'http://127.0.0.1:8080/api/bishe.index/competitionSearch\',{");
document.writeln("									params:{");
document.writeln("										userid:that.userid,");
document.writeln("										token:that.token,");
document.writeln("										text:that.searchcontent,");
document.writeln("										page:\'\'");
document.writeln("									}");
document.writeln("								})");
document.writeln("								.then((res) =>{");
document.writeln("									that.nav = 2");
document.writeln("									if(res.data.code == 1){");
document.writeln("										window.location.href = \'search.html\'");
document.writeln("										sessionStorage.setItem(\'content\', that.searchcontent);");
document.writeln("									}");
document.writeln("								})");
document.writeln("							}");
document.writeln("							else if(that.typeid == 2){");
document.writeln("								axios.get(\'http://127.0.0.1:8080/api/bishe.index/trackSearch\',{");
document.writeln("									params:{");
document.writeln("										userid:that.userid,");
document.writeln("										token:that.token,");
document.writeln("										text:that.searchcontent,");
document.writeln("										page:\'\'");
document.writeln("									}");
document.writeln("								})");
document.writeln("								.then((res) =>{");
document.writeln("									if(res.data.code == 1){");
document.writeln("										window.location.href = \'search.html\'");
document.writeln("										sessionStorage.setItem(\'content\', that.searchcontent);");
document.writeln("									}");
document.writeln("								})");
document.writeln("							}");
document.writeln("						}");
document.writeln("						if(that.typeid == 0){");
document.writeln("							that.tipcontent = 1");
document.writeln("							that.tanchuang1 = 1");
document.writeln("							that.seachopen = false");
document.writeln("						}");
document.writeln("						if(that.searchcontent == \'\'){");
document.writeln("							that.tipcontent = 2");
document.writeln("							that.tanchuang1 = 1");
document.writeln("							that.seachopen = false");
document.writeln("						}");
document.writeln("					},");
document.writeln(" 					// 关闭弹出");
document.writeln("					closeagreement:function(){");
document.writeln("						let that = this");
document.writeln("						that.tanchuang1 = 0");
document.writeln("					},");
document.writeln("					loginuser: function() {");
document.writeln("						let that = this");
document.writeln("						that.num = 1");
document.writeln("					},");
document.writeln(" 					//注册");
document.writeln("					openzhuce: function() {");
document.writeln("						let that = this");
document.writeln("						that.page = 2");
document.writeln("					},");
document.writeln("");
document.writeln("					//关闭登录页");
document.writeln("					closelogin: function() {");
document.writeln("						let that = this");
document.writeln("						that.num = 0");
document.writeln("						sessionStorage.setItem(\'loginpage\',0)");
document.writeln("					},");
document.writeln(" 					//关闭注册页");
document.writeln("					closezhuce: function() {");
document.writeln("						let that = this");
document.writeln("						that.page = 1");
document.writeln("					},");
document.writeln(" 					//关闭注册页");
document.writeln("					closeforget: function() {");
document.writeln("						let that = this");
document.writeln("						that.page = 1");
document.writeln("					},");
document.writeln("					// 搜索历史");
document.writeln("					getsearrchlist: function() {");
document.writeln("						let that = this");
document.writeln("						axios.get(\'http://127.0.0.1:8080/api/bishe.index/searchList\', {");
document.writeln("								params:{");
document.writeln("									userid: that.userid,");
document.writeln("									token: that.token");
document.writeln("								}");
document.writeln("							})");
document.writeln("							.then((res) => {");
document.writeln("								if(res.data.code == 1){");
document.writeln("									that.usersearch = res.data.data.usersearch");
document.writeln("								}");
document.writeln("								console.log(res)");
document.writeln("							})");
document.writeln("					},");
document.writeln("					// 确定登录");
document.writeln("					headlogin: function() {");
document.writeln("						// 账号登陆");
document.writeln("						let that = this");
document.writeln("						axios.post(\'http://127.0.0.1:8080/api/bishe.login/login\', {");
document.writeln("							mobile: that.loginphone,");
document.writeln("							password: that.loginpassword");
document.writeln("						})");
document.writeln("						.then((res) => {");
document.writeln("							that.loginphone = \'\'");
document.writeln("							that.loginpassword = \'\'");
document.writeln("							console.log(res,\'我是用戶信息\')");
document.writeln("							if (res.data.code == 1) {");
document.writeln("								that.num = 0");
document.writeln("								that.loginstatus = 1;");
document.writeln("								that.username = res.data.data.nickname");
document.writeln("								//缓存id,token");
document.writeln("								let loginObj = new Object");
document.writeln("								loginObj.userid = res.data.data.userid");
document.writeln("								loginObj.token = res.data.data.token");
document.writeln("								loginObj = JSON.stringify(loginObj)");
document.writeln("								localStorage.setItem(\'logininfo\', loginObj);");
document.writeln("								//缓存nickname,avatar");
document.writeln("								let userObj = new Object");
document.writeln("								userObj.nickname = res.data.data.nickname");
document.writeln("								userObj.avatar = res.data.data.avatar");
document.writeln("								userObj = JSON.stringify(userObj)");
document.writeln("								localStorage.setItem(\'userinfo\', userObj);");
document.writeln("								if (localStorage.getItem(\'userinfo\')) {");
document.writeln("									let obj = JSON.parse(localStorage.getItem(\'userinfo\'));");
document.writeln("									that.username = obj.nickname");
document.writeln("									that.icon = obj.avatar");
document.writeln("								}");
document.writeln("");
document.writeln("								if (localStorage.getItem(\'logininfo\')) {");
document.writeln("									let obj = JSON.parse(localStorage.getItem(\'logininfo\'));");
document.writeln("									that.userid = obj.userid");
document.writeln("									that.token = obj.token");
document.writeln("								}");
document.writeln("								console.log(\'登陆刷新\')");
document.writeln("								location.reload()");
document.writeln("								sessionStorage.setItem(\'loginpage\',0)");
document.writeln("							} else if (res.data.code == 0) {");
document.writeln("								that.loginstatuscode = 1");
document.writeln("								setTimeout(function() {");
document.writeln("									that.loginstatuscode = 0");
document.writeln("								}, 1300)");
document.writeln("							}");
document.writeln("						})");
document.writeln("					},");
document.writeln("					// 确定注册");
document.writeln("					headzhuce: function() {");
document.writeln("						console.log(111)");
document.writeln("						let that = this");
document.writeln("						if(that.zhucepassword != that.zhucemakesurepassword){");
document.writeln("							that.judgepassword = 1");
document.writeln("							setTimeout(function(){");
document.writeln("								that.judgepassword = 0");
document.writeln("							},1300)");
document.writeln("							");
document.writeln("						}else if(that.zhucemakesurepassword === that.zhucepassword){");
document.writeln("							axios.post(\'http://127.0.0.1:8080/api/bishe.login/register\', {");
document.writeln("									mobile: that.zucephone,");
document.writeln("									code: that.zhucecode,");
document.writeln("									type: 0,");
document.writeln("									password: that.zhucepassword,");
document.writeln("									password1: that.zhucemakesurepassword,");
document.writeln("									languagestatus: that.languagestatus");
document.writeln("								})");
document.writeln("							.then((res) => {");
document.writeln("								console.log(res)");
document.writeln("								if (res.data.code == 1) {");
document.writeln("									that.judgepassword = 2");
document.writeln("									that.zhucetip = res.data.msg");
document.writeln("									setTimeout(function(){");
document.writeln("										that.zucephone =\'\'");
document.writeln("										that.zhucecode = \'\'");
document.writeln("										that.zhucepassword =\'\'");
document.writeln("										that.zhucemakesurepassword =\'\'");
document.writeln("										that.judgepassword = 0");
document.writeln("										that.page = 1");
document.writeln("										that.num = 0");
document.writeln("										that.loginstatus = 1;");
document.writeln("										that.username = res.data.data.nickname");
document.writeln("										//缓存id,token");
document.writeln("										let loginObj = new Object");
document.writeln("										loginObj.userid = res.data.data.userid");
document.writeln("										loginObj.token = res.data.data.token");
document.writeln("										loginObj = JSON.stringify(loginObj)");
document.writeln("										localStorage.setItem(\'logininfo\', loginObj);");
document.writeln("");
document.writeln("										//缓存nickname,avatar");
document.writeln("										let userObj = new Object");
document.writeln("										userObj.nickname = res.data.data.nickname");
document.writeln("										userObj.avatar = res.data.data.avatar");
document.writeln("										userObj = JSON.stringify(userObj)");
document.writeln("										localStorage.setItem(\'userinfo\', userObj);");
document.writeln("");
document.writeln("										if (localStorage.getItem(\'userinfo\')) {");
document.writeln("										let obj = JSON.parse(localStorage.getItem(\'userinfo\'));");
document.writeln("										that.username = obj.nickname");
document.writeln("										that.icon = obj.avatar");
document.writeln("										}");
document.writeln("");
document.writeln("										if (localStorage.getItem(\'logininfo\')) {");
document.writeln("										let obj = JSON.parse(localStorage.getItem(\'logininfo\'));");
document.writeln("										that.userid = obj.userid");
document.writeln("										that.token = obj.token");
document.writeln("										}");
document.writeln("										location.reload()");
document.writeln("									},1300)");
document.writeln("								}else if(res.data.code == 0){");
document.writeln("									that.judgepassword = 2");
document.writeln("									that.zhucetip = res.data.msg");
document.writeln("									setTimeout(function(){");
document.writeln("										that.judgepassword = 0");
document.writeln("									},1300)");
document.writeln("								}");
document.writeln("							})");
document.writeln("						}");
document.writeln("					},");
document.writeln("					// 切换页面");
document.writeln("					changestatusbtn:function(num){");
document.writeln("						let that = this");
document.writeln("						that.changestatus = num");
document.writeln("					},");
document.writeln(" 					// 切换语言");
document.writeln("					changelanguage:function(){");
document.writeln("						alert(\'此功能正在开发\')");
document.writeln("					},");
document.writeln("				}");
document.writeln("			})");
document.writeln("		</script>");
document.writeln("	</body>");
document.writeln("</html>");
document.writeln("");